//
//  TMCustomButton.h
//  Cordova
//
//  Created by cy on 2024/7/5.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef enum : NSUInteger {
    TMCustomButtonImagePositionLeft,//图片在左
    TMCustomButtonImagePositionRight,//图片在右
    TMCustomButtonImagePositionTop,//图片在上
    TMCustomButtonImagePositionBottom,//图片在下
} TMCustomButtonImagePosition;

@interface TMCustomButton : UIButton

/**
 图片位置
 */
@property (nonatomic, assign) TMCustomButtonImagePosition buttonImagePosition;

/**
 文字颜色自动跟随tintColor调整,default NO
 */
@property(nonatomic, assign) BOOL adjustsTitleTintColorAutomatically;

/**
 图片颜色自动跟随tintColor调整,default NO
 */
@property(nonatomic, assign) BOOL adjustsImageTintColorAutomatically;

/**
 default YES;相当于系统的adjustsImageWhenHighlighted
 */
@property(nonatomic, assign) BOOL adjustsButtonWhenHighlighted;

/**
 default YES,相当于系统的adjustsImageWhenDisabled
 */
@property(nonatomic, assign) BOOL adjustsButtonWhenDisabled;

/**
 高亮状态button背景色，default nil，设置此属性后默认adjustsButtonWhenHighlighted=NO
 */
@property(nonatomic, strong) UIColor *highlightedBackgroundColor;

/**
 高亮状态边框颜色，default nil，设置此属性后默认adjustsButtonWhenHighlighted=NO
 */
@property(nonatomic, strong) UIColor *highlightedBorderColor;

@property(nonatomic, copy) NSString *badgeNumber;

@end

@interface TMBadgeLab : UILabel

@property(nonatomic, assign) UIEdgeInsets contentEdgeInsets;

@end



NS_ASSUME_NONNULL_END
